<?php defined('IN_IA') or exit('Access Denied'); ?>
<?php include page('header_base'); ?>
<?php include page('header_plus'); ?>
<title>代理团队</title>
<link rel="stylesheet" href="<?php echo RESOURCE_ROOT;?>eshop/static/jquery.treeview.css" />
<script src="<?php echo RESOURCE_ROOT;?>eshop/static/jquery.js" type="text/javascript"></script>
<script src="<?php echo RESOURCE_ROOT;?>eshop/static/jquery.cookie.js" type="text/javascript"></script>
<script src="<?php echo RESOURCE_ROOT;?>eshop/static/jquery.treeview.js" type="text/javascript"></script>
<style type="text/css">
    body {
        <?php if(is_mobile()){?> margin: 0px;
        <?php }?> background: #eee;
        font-family: '微软雅黑';
        -moz-appearance: none;
    }

    a {
        text-decoration: none;
    }
	li{line-height:16px;white-space:nowrap;}
</style>
<div class="weui-cells_form" style="  margin-bottom:50px;   border-bottom: 0px solid #FFF;   margin-top: 0;">
	 <div class="page_topbar" >
     <a href="<?php echo create_url('mobile',array('act' => 'center','do' => 'member','m'=>'eshop'));?>" class="back"  style="color: #fff;text-align:center;"><i class="fa fa-angle-left"></i></a>
    <div class="title" style="color: #fff;text-align:center;">代理团队</div>
</div>
<div class="team_list_head" style="padding:10px;background:#fff;border-bottom:1px solid #e0e0e0;">
    <div class="info">团队人数:<?php echo $member['agentnum'];?></div>
</div>
<div style="background:#fff;padding:10px 0;overflow-x:auto;">
    <ul id="tree" class="filetree">
        <li><span class="folder"><?php echo $member['nickname'];?>(<?php echo $member['mobile'];?>)</span>
            <?php unset($_SESSION['agentlist']);echo get_agent_lists($member['id']);?>
        </li>
    </ul>
</div>
<div id='container'></div>
<script>
$("#tree").treeview();
</script>
<?php $show_footer = true; ?>
<?php include page('footer_menu'); ?>
<?php include page('footer_base'); ?>